/**
 *  决策指挥-安全决策分析 api
 *  @module api/makeDecisionSecure
 *  @author coder
 */

// API_HOST
import {
	API_HOST
} from '@/config'

// axios
import axios from '@u/axios'

/**
 * 带班人员
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const leadPersonInfo = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/decisioCommand/safetyDecision/leadPersonInfo'
})

/**
 * 人员三违情况
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const personViolation = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/decisioCommand/safetyDecision/personViolation'
})

/**
 * 安全隐患巡检情况
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const safetyPatrol = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/decisioCommand/safetyDecision/safetyPatrol'
})

/**
 * 动态诊断
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const dynamicDiagnosis = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/decisioCommand/safetyDecision/dynamicDiagnosis'
})

/**
 * 安全态势总体趋势
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const generalStatistics = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/decisioCommand/safetyDecision/generalStatistics'
})

/**
 * 安全监测
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const safetyMonitoring = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/decisioCommand/safetyDecision/safetyMonitoring'
})

/**
 * 水文监测
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const hydrologyMonitoring = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/decisioCommand/safetyDecision/hydrologyMonitoring'
})

/**
 * 束管监测
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const tubeMonitoring = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/decisioCommand/safetyDecision/tubeMonitoring'
})

/**
 * 矿压监测
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const pressureMonitoring = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/decisioCommand/safetyDecision/pressureMonitoring'
})

/**
 * 微震监测
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const vibrationMonitoring = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/decisioCommand/safetyDecision/vibrationMonitoring'
})